home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group92c.txt / 000007_icon-group-sender _Fri Oct 2 02:45:23 1992.msg < prev    next >
Internet Message Format  |  1993-01-04  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 5 Oct 1992 05:45:07 MST
  2. Date: 2 Oct 92 02:45:23 GMT
  3. From: uchinews!ellis!goer@uunet.uu.net  (Richard L. Goerwitz)
  4. Organization: University of Chicago Computing Organizations
  5. Subject: Re: Unix Logging Out
  6. Message-Id: <1992Oct2.024523.2937@midway.uchicago.edu>
  7. References: <01GPFIYT5FTU8WWF6P@mis.mcw.edu>
  8. Sender: icon-group-request@cs.arizona.edu
  9. To: icon-group@cs.arizona.edu
  10. Status: R
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12.  
  13. TENAGLIA@mis.mcw.edu (Chris Tenaglia - 257-8765) writes:
  14. >
  15. >If I have a simple abc menu that looks something like :
  16. >
  17. >          M : MAIL
  18. >          C : CHANGE PASSWORD
  19. >          L : LOGOUT
  20. >
  21. >Is there a way to log out cleanly?
  22.  
  23. Under UNIX, processes like shells (i.e. command interpreters) normally
  24. get run right on login, and unless you "exec" a program (and overlay
  25. that shell), it waits for your application to finish, then resumes its
  26. work.  Under normal circumstances, you can't log out from any of your
  27. login shell's child processes.  You have to quit everything else, and
  28. jump back to the login shell and log out from there.
  29.  
  30. You could get around this a) by finding your login shell and then
  31. killing it manually (a la system("kill -9 "||process_id) where pro-
  32. cess_id is the ID of your login shell.  This is very un-UNIXish.  It's
  33. normally presumed that one will not *want* to log out with processes
  34. still active.
  35.  
  36. Does this make any sense?
  37.  
  38. -- 
  39.  
  40.    -Richard L. Goerwitz              goer%midway@uchicago.bitnet
  41.    goer@midway.uchicago.edu          rutgers!oddjob!ellis!goer
  42.